<template>
  <div>
    <div>
      <!-- <div class='search'> <input type="text" placeholder="搜索"></div> -->
      <!-- 二级出口 -->
      <keep-alive>
        <router-view></router-view>
      </keep-alive>
    </div>
    <van-tabbar route>
      <van-tabbar-item replace to="/main" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/list" icon="search">找房</van-tabbar-item>
      <van-tabbar-item replace to="/news" icon="friends-o">资讯</van-tabbar-item>
      <van-tabbar-item replace to="/profile" icon="setting-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'List',
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style scoped lang="less">
.search {
  width: 100%;
  height: 50px;
  background-color: #21b97a;
}
</style>
